package org.holynite.fieldmanage.entities

import javax.persistence.EmbeddedId
import javax.persistence.Entity
import javax.persistence.Table

/**
 * Created by midnite on 15/1/15.
 */
@Entity
@Table(name = "locker_scheme")
class LockerScheme {
	@EmbeddedId
	LockerSchemePK lspk

	boolean equals(o) {
		if (this.is(o)) return true
		if (getClass() != o.class) return false

		LockerScheme that = (LockerScheme) o

		if (lspk != that.lspk) return false

		return true
	}

	int hashCode() {
		return (lspk != null ? lspk.hashCode() : 0)
	}
}
